home *** CD-ROM | disk | FTP | other *** search
/ 404 Jogos / CLJG.iso / Diversos / cosmicfozmik.swf / scripts / frame_7 / PlaceObject2_160_78 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2007-09-27  |  1.2 KB  |  58 lines

  1. onClipEvent(enterFrame){
  2.    if(_root.gameReallyOver == 1)
  3.    {
  4.       _X = -10000;
  5.       _Y = 10000;
  6.       _visible = false;
  7.    }
  8.    if(_root.lives >= 2)
  9.    {
  10.       if(isNegative == 0 && _root.negativeColor == 1)
  11.       {
  12.          myColor.negative();
  13.          isNegative = 1;
  14.       }
  15.       if(isNegative == 1 && _root.negativeColor == 0)
  16.       {
  17.          myColor.setTransform(orig);
  18.          isNegative = 0;
  19.       }
  20.       tickCount++;
  21.       if(tickCount >= tickMax)
  22.       {
  23.          _Y = saveY;
  24.          _X = _root.player._x - 10;
  25.          saveY = _root.player._y;
  26.          tickCount = 0;
  27.       }
  28.       if(_root.dir == 6)
  29.       {
  30.          _Y = _Y + _root.speed;
  31.          _X = _X - _root.speed;
  32.       }
  33.       if(_root.dir == 7)
  34.       {
  35.          _X = _X - _root.speed;
  36.       }
  37.       if(_root.dir == 8)
  38.       {
  39.          _Y = _Y - _root.speed;
  40.          _X = _X - _root.speed;
  41.       }
  42.    }
  43.    if(_root.lives <= 1)
  44.    {
  45.       if(deathCount < 100)
  46.       {
  47.          deathCount += 5;
  48.          _width++;
  49.          _height++;
  50.          _alpha = _alpha - 5;
  51.       }
  52.       if(deathCount == 100)
  53.       {
  54.          _alpha = 0;
  55.       }
  56.    }
  57. }
  58.